import axiosInstance from '../request.js';
import path from '../path.js';
// 登录

export const longinApi = (email, password) => {
    return axiosInstance({
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
        url: path.login,
        method: "POST",
        data: {
            email: email,
            password: password
        }
    })
};
export const sengEnroll = (name, password, resource, email) => {
    return axiosInstance({
        headers: {
            'Content-Type': 'application/json'
        },
        url: path.enroll,
        method: "POST",
        data: {
            myName: name,
            myCipher: password,
            mySex: resource,
            myEmail: email
        }
    })
}
